package com.itdao.dp.strategy.account2.behavior2.impl;

import com.itdao.dp.strategy.account2.behavior2.ILoginService;
import com.itdao.dp.strategy.account2.dto.LoginDto;
import com.itdao.dp.strategy.account2.dto.RegisterDto;

/**
 * 邮箱账户服务类
 */
public class EmailLoginServiceImpl implements ILoginService {
    /**
     * 邮箱登录
     */
    @Override
    public void login(LoginDto loginDto) {
        System.out.println(">>>>> 邮箱登录:username=" + loginDto.getUsername()
                + ", password=" + loginDto.getPassword());
    }

    /**
     * 邮箱注册
     */
    @Override
    public void register(RegisterDto registerDto) {
        System.out.println(">>>>> 邮箱注册");
    }

    /**
     * 邮箱重置密码
     */
    @Override
    public void reset() {
        System.out.println(">>>>> 邮箱重置密码");
    }
}
